<div class="text">
<h2>
    <?php echo image_tag(
                    'login.png'
                    , array(
                        'border' => '0'
                        , 'alt' => __('login required')
                        , 'title' => __('login required')
                        , 'class' => 'sfTMessageIcon'
                    )
                ) ?>&nbsp;
    <?php echo ucfirst(__('please login')); ?>
</h2>

<div class="center_content">
<table cellspacing="0" cellpadding="2">
    <tr>
        <td colspan="2" align="center">
            <?php if ($sf_flash->has('error')): ?>
                <span style="color: red;"><?php echo __($sf_flash->get('error')) ?></span>
            <?php endif; ?>
        </td>
    </tr>
    <?php echo form_tag('user/login')?>
    
    <?php if( $sf_flash->has('returnUrl') ): /* Set return URL if user wants to go back */ ?>
        <?php echo input_hidden_tag('returnUrl', $sf_flash->get('returnUrl')) ?>
    <?php elseif( $sf_params->has('returnUrl') ): ?>
        <?php echo input_hidden_tag('returnUrl', strip_tags($sf_params->get('returnUrl'))) ?>
    <?php endif; ?>
    
    <tr>
        <td align="right">
            <?php echo ucfirst(__('email')); ?>
        </td>
        <td align="left">
            <?php echo input_tag(
                            'email'
                            , __('email')
                            , array(
                                'class' => 'input'
                                , 'style' => 'margin: 0;'
                                , 'onfocus' => "clearDefaultText(this, '" . __('email') . "');"
                                , 'onblur' => "restoreDefaultText(this, '" . __('email') . "');"
                            )
                        );?>
        </td>
    </tr>
    <tr>
        <td align="right">
            <?php echo ucfirst(__('password')); ?>
        </td>
        <td align="left">
            <?php echo input_password_tag(
                                        'password'
                                        , '******'
                                        , array(
                                            'class' => 'input'
                                            , 'style' => 'margin: 0;'
                                            , 'onfocus' => "clearDefaultText(this, '******');"
                                            , 'onblur' => "restoreDefaultText(this, '******');"
                                        )
                                    ); ?>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td align="left">
            <?php echo submit_tag(
                            ucfirst(__('login'))
                            , array(
                                'class' => 'submit'
                            )
                        ); ?>
        </td>
    </tr>
    </form>
</table>
</div>
</div>
<div class="dashed_line">
</div>
<br/>